package com.atguigu.springcloud.bean;

import org.aspectj.lang.annotation.Around;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Autowired
   private RouteLocator delegate;

    @Bean
    public Push push(){
        return new Push(delegate);
    }
}
